package BanyuanClub.Study.Day0308;

import java.util.Scanner;

/**
 * 控制台输入倒计时10秒
 * 10秒内让用户输入HolloWord并打印出来
 */
public class ScannerThread {
    public static void main(String[] args) {
        new Thread(() -> {
            for (int i = 9; i >= 0 ; i--) {
                try {
                    Thread.sleep(5000);
                    System.out.println(i);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }).start();
        Scanner in = new Scanner(System.in);
        String s = in.next();
        System.out.println(s);

    }
}
